
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import logic.PdfReader;
import org.icepdf.core.exceptions.PDFException;
import org.icepdf.core.exceptions.PDFSecurityException;
import org.icepdf.core.pobjects.Document;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author do.ob
 */
public class Main3 {
    public static void main(String[] args){
       String textoPagina = "";
        Document docPDF = new Document();
        Document docPDF2 = new Document();
        try {
            docPDF.setFile("d://bb.pdf");
            docPDF2.setFile("d://cc.pdf");
        } catch (PDFException ex) {
            Logger.getLogger(PdfReader.class.getName()).log(Level.SEVERE, null, ex);
        } catch (PDFSecurityException ex) {
            Logger.getLogger(PdfReader.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(PdfReader.class.getName()).log(Level.SEVERE, null, ex);
        }
       for (int i = 0; i < docPDF.getNumberOfPages(); i++) {
           textoPagina = docPDF.getPageText(i).toString();
       }

        for (int i = 0; i < docPDF2.getNumberOfPages(); i++) {
           textoPagina = docPDF2.getPageText(i).toString();
       }


    }

   
}
